package com.spt.springbootzhsx.controller;

import com.spt.springbootzhsx.entity.back.CountBack;
import com.spt.springbootzhsx.service.CountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/count")
public class CountController {
    @Autowired
    private CountService countService;

    @GetMapping(value = "/getCMUOCount")
    public CountBack getCMUOCount(){
        return countService.getCMUOCount();
    }
}
